option(BUILD_LUTEDITOR OFF)
if(BUILD_LUTEDITOR)
#---------------------------------------------------------------
#---------------------------------------------------------
#  Find dependencies librairies
#--------------------------------------------------------
find_package(wxWidgets COMPONENTS base core gl aui REQUIRED)
if(wxWidgets_FOUND)
         message(STATUS "wxWidgets FOUND ")
                include (${wxWidgets_USE_FILE})
else(wxWidgets_FOUND)
       # For convenience. inform the user
       message(FATAL_ERROR "wxWidgets NOT FOUND ")
endif(wxWidgets_FOUND)

#----------------------------------------------------------
# add executbale
#----------------------------------------------------------
set(lutEditor_DIR ${CMAKE_CURRENT_SOURCE_DIR})
add_executable (lutEditor 
                          ${lutEditor_DIR}/LutEditor.cpp
                          ${lutEditor_DIR}/LutEditor.h
                          )

target_link_libraries(lutEditor luttinyxml liblutcore liblutwx
       ${wxWidgets_LIBRARIES})
set_target_properties(lutEditor PROPERTIES 
  RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
#---------------------------------------------------------------
#---------------------------------------------------------------
endif(BUILD_LUTEDITOR)
